package com.lwm.domain;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 能效预警表(EarlyWarning)实体类
 *
 * @author makejava
 * @since 2023-07-21 10:28:49
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EarlyWarning implements Serializable {
    private static final long serialVersionUID = 216369676531915352L;
    /**
     * 编号
     */
    private Long id;
    /**
     * 监测点名称
     */
    private String monitoringPointName;
    /**
     * 监测点地址
     */
    private String monitoringPointAddress;
    /**
     * 实时功率
     */
    private Double realtimePower;
    /**
     * 实时电压
     */
    private Double realtimeVoltage;
    /**
     * 状态 0 正常(默认),1 功率过载,2 电压异常
     */
    private Integer status;
    /**
     * 上报时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//转换日期格式
    private Date reportedTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//转换日期格式
    private Date createTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//转换日期格式
    private Date updateTime;
    /**
     * 0 未删除(默认), 1 已删除
     */
    private Integer isDeleted;
}
